package com.patterns.mediator;

/**
 * @author fwj
 * @date 2021/4/21 16:53
 **/
public class Client {

    public static void main(String[] args) {
        Mediator md = new ConcreteMediator();
        Colleague c1, c2;
        c1 = new ConcreteColleague1();
        c2 = new ConcreteColleague2();
        md.register(c1);
        md.register(c2);
        c1.send(md);
        System.out.println("-------------");
        c2.send(md);
    }

}
